include row

table
	tr
		td.neutral(colspan='2')
			h3 Port
			button#edit(onclick='window.location.href=\'/port/' + port._id + '/edit\'') Edit
	tr
		td.neutral.editLabel Name
		td.neutral= port.name
	tr
		td.neutral.editLabel Device
		td.neutral.link(onclick='window.location.href=\'/device/' + port.device._id + '\'')= port.device.name
	tr
		td.neutral.editLabel System ID
		td.neutral= port.sysId
	tr
		td.neutral.editLabel Data Type
		td.neutral= port.type
	tr
		td.neutral.editLabel Direction
		td.neutral= port.direction
	-if(port.direction == 'Input')
		tr
			td.neutral.editLabel Sample Smoothing
			td.neutral
				-if(port.smoothing == 0)
					='None'
				-else
					=port.smoothing + ' Samples'
	-else if(port.direction == 'Output')
		tr
			td(rowspan= port.inputs.length +  1).neutral Inputs
			td.neutral
				span.indicator#UpdateIndicate &nbsp;
		each input in port.inputs
			tr
				mixin PortRow(input, port.device)
		tr
			td.neutral.editLabel Relation
			td.neutral
				b function(inputs) {
				div &nbsp;
				div
					pre= port.relation
				div &nbsp;
				div return output;
				b }
	tr
		td.neutral.editLabel Description
		td.neutral= port.description
	tr
		td.neutral.editLabel Value
		td.neutral.PortRow(id= port.sysId)
			span.PortValue= port.value
